<div class=" admin-content">
<div class="admin-biaogelist">
	
    <div class="listbiaoti am-cf">
      <ul class="am-icon-flag on"> 编辑文章</ul>
      
      <dl class="am-icon-home" style="float: right;"> 当前位置： <a href="{:U('Index/Index')}">首页</a> > <a href="{:U('Article/Index')}">文章管理</a> > 编辑文章</dl>

    </div>
	
    <div class="fbneirong">
      <form class="am-form" action="__SELF__" method="post" enctype="multipart/form-data">
      <input type="hidden" name="id" value="{$data.id}">
      <input type="hidden" name="old_image" value="{$data.image}">
        <div class="am-form-group am-cf">
          <div class="zuo">标题：</div>
          <div class="you">
            <input type="text" name="name" value="{$data.name}" class="am-input-sm w-60" id="doc-ipt-email-1" placeholder="请输入标题">
          </div>
        </div>
        <div class="am-form-group am-cf">
          <div class="zuo">文章分类</div>
          <div class="you">
            <select name="cate_id" data-am-selected="{btnWidth: 150, btnSize: 'sm', btnStyle: 'default'}">
              <volist name="tree" id="vo">
              <option <if condition="$data['cate_id'] eq $vo['id']">selected</if> value="{$vo.id}"><if condition="$vo['level'] neq 0">└</if>{:str_repeat('─',$vo['level'])}{$vo.name}</option>
              </volist>
            </select>
          </div>
        </div>
        <div class="am-form-group am-cf">
          <div class="zuo">描述：</div>
          <div class="you">
            <textarea name="desc" rows="2" id="doc-ta-1">{$data.desc}</textarea>
          </div>
        </div>
         <div class="am-form-group am-cf">
        <div class="zuo">推荐：</div>
        <div class="you" style="margin-top: 5px;">
          <label class="am-checkbox-inline">
            <input type="checkbox" <if condition="$data['recom'] eq 1">checked</if> name="recom" value="1">
            推荐 </label>
          <label class="am-checkbox-inline">
            <input type="checkbox" <if condition="$data['show'] eq 1">checked</if> name="show" value="1">
            显示 </label>
        </div>
        </div>
        <div class="am-form-group am-cf">
          <div class="zuo">内容：</div>
          <div class="you">
             <textarea name="content" id="content">{$data.content}</textarea>
          </div>
        </div>
        <!-- <div class="am-form-group am-cf">
          <div class="zuo">招聘人数：</div>
          <div class="you">
            <input type="text" name="renshu" value="{$data.renshu}" class="am-input-sm w-20" id="doc-ipt-pwd-1" placeholder="发布招聘信息填写">
          </div>
        </div>
        <div class="am-form-group am-cf">
          <div class="zuo">英文标题：</div>
          <div class="you">
            <input type="text" name="ename" value="{$data.ename}" class="am-input-sm w-60" id="doc-ipt-pwd-1" placeholder="英文标题：">
          </div>
        </div>
        <div class="am-form-group am-cf">
          <div class="zuo">托管价格：</div>
          <div class="you">
            <input type="text" name="price" value="{$data.price}" class="am-input-sm w-20" id="doc-ipt-pwd-1" placeholder="发布托管信息填写">
          </div>
        </div> -->
         <div class="am-form-group am-cf">
          <div class="zuo">关键词：</div>
          <div class="you">
            <input type="text" name="keyword" value="{$data.keyword}" class="am-input-sm w-60" id="doc-ipt-pwd-1" placeholder="请输入关键词">
          </div>
        </div>
        <div class="am-form-group am-cf">
          <div class="zuo">排序</div>
          <div class="you">
            <input type="text" name="sort" value="{$data.sort}" class="am-input-sm w-20" id="doc-ipt-email-1" placeholder="数字越大越靠前">
          </div>
        </div>
         <div class="am-form-group am-cf">
          <div class="zuo">浏览次数</div>
          <div class="you">
            <input type="text" name="pv" value="{$data.pv}" class="am-input-sm w-20" id="doc-ipt-email-1" placeholder="浏览次数">
          </div>
        </div>
        <div class="am-form-group am-cf">
          <div class="zuo">发布日期</div>
          <div class="you">
            <input type="text" style="width: 25%;" name="publish_time" value="{:date('Y-m-d H:m:s',$data['publish_time'])}" class="am-input-sm" id="jeDate" placeholder="发布日期" readonly>
          </div>
        </div>
        <div class="am-form-group am-cf">
          <div class="zuo">备注：</div>
          <div class="you">
            <textarea class="" name="comment" rows="2" id="doc-ta-1">{$data.comment}</textarea>
          </div>
        </div>
        <div class="am-form-group am-cf">
          <div class="zuo">上传图片：</div>
          <div class="you" style="height: 45px;">
          <p>{$data.image}</p>
            <input type="file" name="image" id="doc-ipt-file-1">
          </div>
        </div>

        <div class="am-form-group am-cf">
          <div class="you" style="margin-left: 11%;">
          	<input type="submit" class="am-btn am-btn-success am-radius" value="提交">
          </div>
        </div>
      </form>
    </div>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="__PUBLIC__/jedate/jedate.min.js"></script>

<script type="text/javascript">
    UE.getEditor('content', {
        "initialFrameWidth" : "100%",
        "initialFrameHeight" : 300,
        "maximumWords" : 5000
    });
    jeDate({ 
    dateCell:"#jeDate",
    format:"YYYY-MM-DD hh:mm:ss",
    isinitVal:true,
    isTime:true, //isClear:false,
    minDate:"2014-09-19 00:00:00",
    okfun:function(val){alert(val)}
  })
</script>
 
  
 